package sma.iss.sort;

import java.util.Comparator;

import sma.iss.GeneticModel;

/**
 * To sort Position according score
 * 
 * @author smarsoll
 * 
 */
public class GeneticModelComparator implements Comparator<GeneticModel> {

	public int compare(GeneticModel o1, GeneticModel o2) {
		if (o1.averageScore < o2.averageScore) {
			return +1;
		} else if (o1.averageScore > o2.averageScore) {
			return -1;
		}
		return 0;
	}

}
